package com.han.spider.cloudmeeting;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @Author: Hanjiafeng
 * @Date: 2020/6/29
 * @Desc:
 */
public class UserPropertyReader {
    public static List<String[]> getUserList(String path) throws IOException {
        List<String[]> list = new ArrayList<>();
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(path)))) {
            String line;
            while (!Objects.isNull(line = reader.readLine())) {
                String[] s = line.split(",");
                list.add(s);
            }
        }
        return list;
    }
}
